package com.cn.utils;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;



@Aspect
@Component
public class LogUtils {

    @Before("execution(public void com.cn.service.AccountServiceImpl.BringForward())")
    public static void logBefore() {
        System.out.println("方法开始执行了");

    }

    @After("execution(public void com.cn.service.AccountServiceImpl.BringForward())")
    public static void logAfter() {
        System.out.println("方法结束执行了");

    }
}
